package com.jiaming.restaurant.api.trade.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author dragon
 * @create 2021-02-25 20:10
 */
@Data
public class TradeInfoVo {
    private Long id;

    @JsonProperty(value = "trade_id")
    private String tradeId;
    @JsonProperty(value = "user_id")
    private String userId;
    @JsonProperty(value = "rest_id")
    private Integer restId;
    @JsonProperty(value = "rest_name")
    private String restName;
    @JsonProperty(value = "table_id")
    private Integer tableId;
    @JsonProperty(value = "table_code")
    private String tableCode;
    @JsonProperty(value = "trade_status")
    private Integer tradeStatus;
    private Integer amount;
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @JsonProperty(value = "pay_time")
    private LocalDateTime payTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @JsonProperty(value = "create_time")
    private LocalDateTime createTime;
    private List<GoodsVo> goods;

}
